package org.dromara.comm_lhz.entity.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import org.dromara.comm_lhz.entity.CustomDateDeserializer;

import java.util.Date;
import java.util.List;

@Data
public class AsActivityDto {

    /**
     * 主键id
     */
    @TableId
    private Long id;

    /**
     * 图片参数存储
     */
    private List<AsActivityImgDto> imagePath;  // 修改为对象列表

    private List<String> imagePaths;  // 修改为对象列表
    /**
     * 活动名称
     */
    private String activityName;
    /**
     * 活动描述
     */
    private String activityDescribe;

    @JsonDeserialize(using = CustomDateDeserializer.class)
    private Date eventStartTime;

    @JsonDeserialize(using = CustomDateDeserializer.class)
    private Date eventEndTime;

    @JsonDeserialize(using = CustomDateDeserializer.class)
    private Date registrationStartTime;

    @JsonDeserialize(using = CustomDateDeserializer.class)
    private Date registrationEndTime;

    @JsonDeserialize(using = CustomDateDeserializer.class)
    private Date checkInEventStartTime;

    @JsonDeserialize(using = CustomDateDeserializer.class)
    private Date checkInEventEndTime;
    /**
     * 举办地址
     */
    private String address;
    /**
     * 活动状态 （0.审核中 1.未开始 2.进行中 3.已结束）
     */
    private Integer state;
    /**
     * 活动图片
     */
    private String activitiesImg;
    /**
     * 活动介绍
     */
    private String activities;
    /**
     * 创建人
     */
    private String createdBy;
    /**
     * 创建时间
     */@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private Date createdTime;
    /**
     * 修改者
     */
    private String updatedBy;
    /**
     * 修改时间
     */@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private Date updatedTime;
    /**
     * 逻辑删除
     */
    @TableLogic
    private Long isDelete;


    private String thumbnail;

}
